// 清单表操作
import Db from './base'
import { ISO8601, getSnowflakeId } from '@/utils'
import store from '@/store'
export const listTable = [
  // {
  //   key: 'id'
  // },
  {
    key: 'name',
    default: ''
  },
  {
    key: 'content',
    default: ''
  },
  {
    key: 'quadrantType',
    default: 1
  },
  {
    key: 'color',
    default: ''
  },
  {
    key: 'serverId',
    default: ''
  },
  {
    key: 'createDateTime',
    default: () => ISO8601()
  },
  {
    key: 'modifyPointingDate',
    default: () => ISO8601()
  },
  {
    key: 'orderBy',
    default: 0
  },
  {
    key: 'remindStatus',
    default: -1
  },
  {
    key: 'isDeleted',
    default: 0
  },
  {
    key: 'userId',
    default: () => store.getters.userInfo.userid || ''
  },
  {
    key: 'clientId',
    default: () => getSnowflakeId()
  },
  {
    key: 'remindStarRules',
    default: ''
  },
  {
    key: 'timeRules',
    default: ''
  },
  {
    key: 'timeRulesStart',
    default: 0
  },
  {
    key: 'timeRulesEnd',
    default: 6
  },
  {
    key: 'syncStatus',
    default: 0
  },
  {
    key: 'version'
  }
]
export default new Db('QuadrantList', listTable)
